#pragma once

#include <ClanLib/display.h>
#include "PianoEngine.h"
#include <ClanLib/gui.h>

class MainWindow : public CL_Window
{
	bool on_input_up(const CL_InputEvent &key);
	bool on_input_down(const CL_InputEvent &key);
	bool on_close();
	void on_render(CL_GraphicContext &gc, const CL_Rect &clip_rect);
	void on_checkbox_checked(CL_CheckBox* checkbox);
	PianoEngine piano_engine;
	CL_CheckBox* cb_fadein;
	CL_CheckBox* cb_fadeout;

public:
	MainWindow(CL_GUIManager *manager, const CL_DisplayWindowDescription &desc);
};
